package cz.spock.parser.entity;

import java.util.List;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Transient;

import com.googlecode.objectify.annotation.Unindexed;

/**
 * defines single tag and rules which are applied during process
 * 
 * should be used only inside wrapper TripletPattern
 * 
 * @author miso
 *
 */
@Entity
public class TagPattern {
    
    @Id
    private Long id;
    
    private String regex;
    @Unindexed
    private List<Long> rulesId;
    @Transient
    private List<Rule> rules;
    
    
    public Long getId() {
        return id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public String getRegex() {
        return regex;
    }
    public void setRegex(String regex) {
        this.regex = regex;
    }
    public List<Long> getRulesId() {
        return rulesId;
    }
    public void setRulesId(List<Long> rulesId) {
        this.rulesId = rulesId;
    }
    public List<Rule> getRules() {
        return rules;
    }
    public void setRules(List<Rule> rules) {
        this.rules = rules;
    }

}
